﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TuyennvLibrary.Attributes
{
    [AttributeUsage(AttributeTargets.Method | AttributeTargets.ReturnValue, AllowMultiple = true, Inherited = false)]
    public sealed class AttributeExpireMethod : Attribute, IComparable<AttributeExpireMethod>
    {
        public Boolean Expire { get; set; }
        public AttributeExpireMethod()
        {
            this.Expire = false;
        }
        public AttributeExpireMethod(bool Expire)
        {
            this.Expire = Expire;
        }

        public int CompareTo(AttributeExpireMethod other)
        {
            return other.Expire.CompareTo(this.Expire);
        }
    }
}
